Repository navigation
feat(platform-objects): Setup → Users can remove a pending person on a managed environment - #35487
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
📓 Docs Drift CheckThis PR changes 1 package(s): 32 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 927bcfbeecd412e543b458b68732c54304c9e3b8 && git checkout 927bcfbeecd412e543b458b68732c54304c9e3b8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6f36818f032edd8d9cff7aaf65f762374b62e070 e6380b4f1cc008824fd5a7b90affd0d6f2f20a76 && git checkout -B drift-repro 6f36818f032edd8d9cff7aaf65f762374b62e070 && git merge --no-ff e6380b4f1cc008824fd5a7b90affd0d6f2f20a76
node scripts/docs-audit/affected-docs.mjs --json 6f36818f032edd8d9cff7aaf65f762374b62e070
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT · head Readings: K=14 (under 15, no main merge owed); Code (22 files, +210/−0; 76 lines are generated translation bundles).
Pins. The judgment asked: no R item. The card's outcome ("deletes the row and cancels the invitation") is the door's contract, pinned on the door's own suites (#34404 / #34162). This PR adds no runtime code between the button and the door. The action is declarative, and its request is built by the generic api-action path: the Declaration: agreed. Routing. Not governed, no contract face: data-1 lands it. A new push needs a fresh L1 only if it changes more than a main merge. |
|
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb Landing · area data-1 · 2026-11-19T12:07Z
State: draft → ready + auto-merge (merge queue). #35220 closes on merge via |
Fixes #35220
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
sys_usergains the row actionremove_sso_user(label "Remove Pending User", Users list row + record header). It posts the row id asuserIdto plugin-auth's existing/api/v1/auth/admin/remove-sso-user, behind aconfirmTextconfirmation (no params, so the question ridesconfirmText, theimpersonate_userprecedent).current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true), thenhas(record.source) && record.source == 'idp_pending', the field the door itself checks (isPendingSsoSource(target.source)).node scripts/check-i18n-bundles.mjs --write), hand-translated for zh-CN, ja-JP and es-ES; the other seven locales carry the source copy with its source hash, as Add / Import do.Tests
packages/platform-objects/src/identity/remove-pending-sso-user-visibility.test.ts: the predicate evaluated through@objectstack/formula. Offered on pending + managed + platform admin; CONTROLs hidden on anidp_provisionedrow, anenv_nativerow, a row with nosource, flag off, no flag served, and an org owner below the rung. Also pins the target,recordIdParam: 'userId', no params, norequiresFeature.pnpm --filter @objectstack/platform-objects exec vitest run: Test Files 124 passed (124), Tests 2061 passed (2061).pnpm --filter @objectstack/platform-objects typecheck: exit 0.Acceptance notes
pending-sso-users.test.ts(the[#33186]block drives Add / Import declared actions); that file is outside this claim's surface, so no live-drive pin forremove_sso_userwas added there. The door's removal and invitation cancellation are already pinned by its own suites.席位核对
packages/platform-objects/src/feature-gate-guard.test.tsgains one row,['sys_user.actions.remove_sso_user', 'cloudManaged']inSHOWN_WHEN_ON. The guard's reverse walk books everyfeatures.*reference in an action predicate, so without it the guard goes red.sys_useraction targetsremove-sso-user(grep: only plugin-auth tests and dogfood route rosters name it), anduserActionsopenseditonly, so the standard delete is off. The gap holds.MANAGED_ADD_PERSON_VISIBLE; pending isrecord.source == 'idp_pending', the value the door checks.buildApiActionRequestis generic and stampsorganizationId, which the door'sunknownBodyKeysadmits. The standing census inplatform-admin-affordance-standing.test.tsis a floor that picks the action up by its target; it passes unchanged.platform-objects.test.tsrows are not exhaustive forSysUser; unchanged.{ userId }(closed key set plus stampedorganizationId); refusals 409 (not pending / not managed), 503 (host unreachable), 404, 400. The confirmation names only the 409 and 503 cases.Ablation (one-shot, restored, blob checked against HEAD)
node scripts/ablation-replace.mjs, anchor 1 to 0): 3 failed, 5 passed; the three non-pending CONTROLs went red. Restored: blob == HEAD,git diff HEADempty.true: the flag-off, no-flag and org-owner CONTROLs went red. Restored the same way../sys-user.object.jsfrom source, so nodist/leg applies.Derived gates (dispatch-gates --commands, exit codes captured before any pipe)
check:i18n"platform-objects in sync (32 bundle(s))",check:i18n-stale-fill,check:nul-bytes,check:cross-package-test-inputs,check:type-check-coverage, the changeset families).check:dual-build-cjs-loads, reason: PREREQUISITE NOT MET (exit 3). It needs a whole-workspacepnpm buildand this container has partialdist/. Left to CI as a declared narrowing.test:reponot run locally: no file of that project changed. CI's Test Core covers it.Generated by Claude Code